class Chicken extends Animal {
    private String combColor;

    public Chicken(String name, int age, String gender, int legNum, double weight, String combColor)
    {
        super(name, age, gender, legNum, weight);
        this.combColor = combColor;
    }

    @Override
    public String toString()
    {
        return "Chicken {" +
                "name" + name + '\'' +
                "age" + age + '\'' +
                "gender" + gender + '\'' +
                "legNum" + legNum + '\'' +
                "weight" + weight + '\'' +
                "combColor" + combColor + '\'' +
                "}";
    }
    @Override
    public void eatting(String Food)
    {
        System.out.println(name + "正在啄食" + Food);
    }

    public void fying()
    {
        System.out.println(name + "正在飞");
    }
}
